package com.smart.common.exception;

import com.smart.common.util.IErrorCode;

public enum SysExceptionEnum implements IErrorCode{
	
	/******** 系统管理 member 100100 *********/
    WRONG_USERNAME_OR_PASSWORD(100100, "用户名或密码错误"),
	DEPT_NOT_EXISTS(100400, "部门已停用或不存在，不允许新增"),
	;
	private int code;
    private String msg;
    SysExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    @Override
    public long getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    @Override
    public String getMessage() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}